Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Right permissions for folders and files on web folder #1579

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

moucho
Copy link
Contributor

@moucho moucho commented May 21, 2018

If a custom skeleton is used with folders inside it, the permissions are 644 which is wrong.
This commit fixes that.
PS: Resubmitted from #1464

Long answer:

When a new web domain is added to VestaCP, VestaCP gets its skeleton tree (files and folders) from /usr/local/vesta/data/templates/web/skel/

With the default skeleton, permissions were fine with the way it was setting them, there were only two files (index.html and robots.txt) with 644

But if you change the files on /usr/local/vesta/data/templates/web/skel/ with, let's say, WordPress instalation, then all files and folders would be also 644. With this fix, files continue to be 644 and folders will be 755 as it should.

If you don't use custom skeleton, you won't see any change; if you use custom skeleton, then now the permissions will be set right

@moucho moucho changed the title Right permissions for folders an files on web folder Right permissions for folders and files on web folder May 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant